using System;
using System.Collections;

namespace Com.CMS263.PO
{
	#region EmailSet

	/// <summary>
	/// EmailSet object for NHibernate mapped table 'EmailSet'.
	/// </summary>
	public class EmailSet
	{
		#region Member Variables
		
		protected int _id;
		protected string _server;
		protected string _mailUser;
		protected string _mailPass;

		#endregion

		#region Constructors

		public EmailSet() { }

		public EmailSet( string server, string mailUser, string mailPass )
		{
			this._server = server;
			this._mailUser = mailUser;
			this._mailPass = mailPass;
		}

		#endregion

		#region Public Properties

		public virtual int Id
		{
			get {return _id;}
			set {_id = value;}
		}

		public  virtual string Server
		{
			get { return _server; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for Server", value, value.ToString());
				_server = value;
			}
		}

		public  virtual string MailUser
		{
			get { return _mailUser; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for MailUser", value, value.ToString());
				_mailUser = value;
			}
		}

		public  virtual string MailPass
		{
			get { return _mailPass; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for MailPass", value, value.ToString());
				_mailPass = value;
			}
		}

		

		#endregion
	}
	#endregion
}